package com.xyf.sys.service;

import com.github.pagehelper.PageInfo;
import com.xyf.sys.domain.UserAddress;

import java.util.List;

/**
 * @Author R-H
 * @Date 2024/2/241534
 * @Description
 */
public interface IUserAddressService {

    /**
     *
     * @param userId
     * @param type
     * @return
     */
    List<UserAddress> getList(String userId, Integer type, String search);

    PageInfo getPage(Integer pageNum, Integer pageSize, String userId, Integer type, String keyword, Long deptId, boolean client);

    List<UserAddress> getList(String userId, Integer type);

    UserAddress get(Long id);

    UserAddress getDefaultAddress(String userId, Integer type);

    UserAddress add(UserAddress userAddress);

    int update(UserAddress userAddress);

    void setDefault(Long id, int addressType);

    boolean check(String openid, Integer type, UserAddress userAddress);

    Object remove(Long id);

    UserAddress get(UserAddress userAddress);

    List<UserAddress> getList(String mobile);

    UserAddress get(String name, String mobile);
}
